<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Appendix B. Implementing Scrolling in a Window-like Actor</title>
    <link rel="stylesheet" href="style.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Clutter编程" />
    <link rel="up" href="index.html" title="Clutter编程" />
    <link rel="prev" href="custom-container-example.html" title="Example" />
    <link rel="next" href="scrolling-container-example.html" title="Example" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Appendix B. Implementing Scrolling in a Window-like Actor</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="custom-container-example.html"><img src="../icons/prev.png" alt="Prev" /></a> </td>
          <th width="60%" align="center"> </th>
          <td width="20%" align="right"> <a accesskey="n" href="scrolling-container-example.html"><img src="../icons/next.png" alt="Next" /></a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="appendix" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title"><a id="appendix-implementing-scrolling"></a>Appendix B. Implementing Scrolling in a Window-like Actor</h2>
          </div>
        </div>
      </div>
      <div class="toc">
        <p>
          <b>Table of Contents</b>
        </p>
        <ul>
          <li>
            <span class="sect1">
              <a href="appendix-implementing-scrolling.html#id2989723">The Technique</a>
            </span>
          </li>
          <li>
            <span class="sect1">
              <a href="scrolling-container-example.html">Example</a>
            </span>
          </li>
        </ul>
      </div>
      <div class="sect1" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title" style="clear: both"><a id="id2989723"></a>The Technique</h2>
            </div>
          </div>
        </div>
        <p>There is not yet a standard container in <span class="application">Clutter</span> to show and scroll through 
a small part of a set of widgets, like the 
<code class="classname">GtkScrolledWindow</code> widget in the GTK+ toolkit, so you may 
need to implement this functionality in your application.
</p>
        <p>The <span class="application">Tidy</span> project 
contains some suggested implementations for such actors, but here is a simpler example 
of the general technique. It creates the impression of scrolling by clipping a 
container so that it only shows a small area of the screen, while moving the child 
widgets in that container.
</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="custom-container-example.html"><img src="../icons/prev.png" alt="Prev" /></a> </td>
          <td width="20%" align="center"> </td>
          <td width="40%" align="right"> <a accesskey="n" href="scrolling-container-example.html"><img src="../icons/next.png" alt="Next" /></a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Example </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">
              <img src="../icons/home.png" alt="Home" />
            </a>
          </td>
          <td width="40%" align="right" valign="top"> Example</td>
        </tr>
      </table>
    </div>
  </body>
</html>
